<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="persdoc" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
	<title>Personal Doc</title>
	<link href="${pageContext.request.contextPath}/resources/styles/main.css" type="text/css" rel="stylesheet" media="screen"/>
</head>
<body>
	<div id="header">
		<div class="wrap">
			<%@ include file="../general/header.jsp" %>
		</div>
	</div>
	<div class="wrap">
		<div id="main">
			<h2>Results for patient ${patientName} </h2>
				<div class="column grid_9">
							<c:choose>
								<c:when test="${empty results}">
									<p>No data found</p>
								</c:when>
								<c:otherwise>
									<c:forEach items="${results}" var="entry">
										<p>${entry.key}</p>
										<p><img src=" ${entry.value}" alt="Chart" /></p>
								
									</c:forEach>
								</c:otherwise>
							</c:choose>
					</div>

		</div>
		
		<div id="side">
			<%@ include file="../general/side.jsp" %>
		</div>
	
		<div id="footer">
			<%@ include file="../general/footer.jsp" %>
		</div>
	
	</div>	
</body>
</html>